dataSource {
//    pooled = true
//    driverClassName = "org.h2.Driver"
//    driverClassName = "com.p6spy.engine.spy.P6SpyDriver" // use this driver to enable p6spy logging
//    username = "sa"
//    password = ""
}
hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = false
    cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
environments {
    development {
        dataSource {
            pooled = true
//            driverClassName = "net.sourceforge.jtds.jdbc.Driver"
            driverClassName = "com.p6spy.engine.spy.P6SpyDriver" // use this driver to enable p6spy logging
            url = "jdbc:jtds:sqlserver://192.168.200.110:1433/activityDev"
            username = "pm"
            password = "xinydptL:"
            dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
            logSql = false
//            url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000"
        }
    }
    test {
        dataSource {
            pooled = true
//            driverClassName = "net.sourceforge.jtds.jdbc.Driver"
            driverClassName = "com.p6spy.engine.spy.P6SpyDriver" // use this driver to enable p6spy logging
            url = "jdbc:jtds:sqlserver://192.168.200.110:1433/activityTest"
            username = "pm"
            password = "xinydptL:"
            dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
            logSql = false
//            url = "jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000"
        }
    }
    production {
        dataSource {
            pooled = true
//            driverClassName = "net.sourceforge.jtds.jdbc.Driver"
            driverClassName = "com.p6spy.engine.spy.P6SpyDriver" // use this driver to enable p6spy logging
            url = "jdbc:jtds:sqlserver://192.168.200.110:1433/activity"
            username = "pm"
            password = "xinydptL:"
            dbCreate = "update" // one of 'create', 'create-drop', 'update', 'validate', ''
            logSql = false
            //            url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000"
            properties {
                maxActive = -1
                minEvictableIdleTimeMillis=1800000
                timeBetweenEvictionRunsMillis=1800000
                numTestsPerEvictionRun=3
                testOnBorrow=true
                testWhileIdle=true
                testOnReturn=true
                validationQuery="SELECT 1"
            }
        }
    }
}